﻿
@{
    ViewBag.Title = "Login";
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>

    <link rel="stylesheet" href="~/Content/bootstrap.min.css">
    <link rel="stylesheet" href="~/Statics/Login.css" />
</head>
<body>

    <div class="card">
        @*<h5 class="card-header">登录界面</h5>*@
        <div class="card-body">
            <form id="loginForm" action="/Users/LoginDone" method="POST">
                <div class="form-group">
                    <label for="exampleInputEmail1">用户名：</label>
                    <input type="text" name="username" class="form-control" id="username" aria-describedby="emailHelp">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">密码：</label>
                    <input type="password" name="password" class="form-control" id="password">
                </div>
                <div class="form-group form-check">
                    <input type="checkbox" class="form-check-input" id="exampleCheck1">
                    <label class="form-check-label" for="exampleCheck1">记住我</label>
                </div>
                <br />
                <div>
                    <button type="submit" class="btn btn-primary" id="botton">登录</button>
                    <button type="button" class="btn btn-primary" onclick="run()">注册</button>
                </div>
            </form>
        </div>
    </div>
    <link rel="stylesheet" href="~/Scripts/jquery-3.4.1.min.js">
    <link rel="stylesheet" href="~/Scripts/bootstrap.min.js">
    <script>
        function run(){
          window.location.href='Register';
        };
    </script>
</body>
</html>

